package cn.sxw.android.base.utils

import android.view.View

object FocusViewUtil {
    fun focus(view: View?) {
        if (view == null) return
        try {
            view.isFocusable = true
            view.isFocusableInTouchMode = true
            view.requestFocus()
            view.requestFocusFromTouch()
        } finally {
        }
    }
}